<#assign path=request.contextPath />
<#import "spring.ftl" as spring/>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>主页</title>
    <script type="text/javascript" src="${path}/static/js/jquery.min.js"></script>
    <script type="text/javascript">

     function CN() {
                    location.href = '/changeLanguage/CN';
                }
        function US() {
            location.href = '/changeLanguage/US';
        }
    </script>
</head>
    <body>
    <p>
        <a href="javascript:CN()">简体中文</a>/<a href="javascript:US()">English</a>
    </p>
        <form action="${path}/login" method="post">
            <table>
                <tr>
                    <th><@spring.message "username"/>:</th>
                    <td><input name="username" /></td>
                </tr>
                <tr>
                    <th>密码：</th>
                    <td><input type="password" name="password" /></td>
                </tr>
            </table>
            <label>${i18n!}</label>
            <input type="submit"  name="登录"/>
        </form>
    </body>

</html>